Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 17786 - CompileBefore/CompileAfter is lost due to the FSharpSourceCodeCompileOrder target #17791

Merged
merged 4 commits into from
Sep 28, 2024

Conversation

KevinRansom
Copy link
Member

Fixes: #17786 - CompileBefore/CompileAfter is lost due to the FSharpSourceCodeCompileOrder target

This adds the CompilationOrder metadata as default metadata to CompileBefore/CompileAfter and CompileLast. This ensures that when they are inserted into the Compile/Sources collection the metadata goes with them.

Currently:
image

With this change:
image

@KevinRansom KevinRansom requested a review from a team as a code owner September 25, 2024 19:21
@KevinRansom
Copy link
Member Author

@auduchinok let me know if this works for you.

Copy link
Contributor

github-actions bot commented Sep 25, 2024

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@KevinRansom KevinRansom added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Sep 25, 2024
@KevinRansom KevinRansom added this to the September-2024 milestone Sep 25, 2024
Copy link
Member

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom Wow, this is such a simple fix! Looks great, thank you very much! 🙂


<CompileLast>
<CompileOrder>CompileLast</CompileOrder>
</CompileLast>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please also add CompileFirst?

I see its usage in FSharpSourceCodeCompileOrder here:

<__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileFirst'))" />

and in FSharp.Core here:

<Compile Include="prim-types-prelude.fsi" CompileOrder="CompileFirst">

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom This hasn't been resolved. 😞

@KevinRansom KevinRansom merged commit 0a5901f into dotnet:main Sep 28, 2024
32 checks passed
esbenbjerre pushed a commit to esbenbjerre/fsharp that referenced this pull request Sep 30, 2024
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Oct 4, 2024
vzarytovskii pushed a commit that referenced this pull request Oct 7, 2024
…ore and CompileAfter values (#17838)

* Fix 17786 (#17791)

* CompilerOrder: set metadata for CompileFirst items (#17820)

Co-authored-by: Kevin Ransom (msft) <codecutter@hotmail.com>

* version

---------

Co-authored-by: Eugene Auduchinok <eugene.auduchinok@jetbrains.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

CompileBefore/CompileAfter is lost due to the FSharpSourceCodeCompileOrder target
3 participants